"use strict";
/**
 * @author zhaojiuyi
 * @date 2022/6/1-19:58
 * @version 1.0.0
 */
import Mock from 'mockjs'
 //mock
let data = Mock.mock({
  id: "@id()", // 得到随机的id,对象
  username: "@cname()", // 随机生成中文名字
  date: "@date()", // 随机生成日期
  avatar: "@image('200x100', '#00405d', '#FFF', 'Mock.js')",
  // => "http://dummyimage.com/200x100/00405d/FFF&text=Mock.js"
  // description: "@paragraph()",// 描述
  ip: "@ip()",// IP地址
  email: "@email()" // email

})
Mock.mock("http://localhost:8080/login", 'post', {
  "token": "12asdf41asfasf2123asf4312safasdff34",
  "data" : data
})

